What is the difference between DELETE and TRUNCATE commands?
1279
06-May-2019
Updated on 16-Sep-2020
Rahul Roi
06-May-2019Mostly DELETE command is used to remove rows from the table, and WHERE clause can be used for conditional set of parameters. Here Commit and Rollback operation can be performed or used after delete statement.
Into the TRUNCATE command removes all rows from table. And the Truncate operation cannot be rolled back. In other word, Commit and Rollback operation can't be performed in TRUNCATE operation.